package com.hqd.ch03.test.web.v42;


import com.hqd.ch03.v42.context.stereotype.Controller;
import com.hqd.ch03.v42.web.bind.annotation.RequestMapping;
import com.hqd.ch03.v42.web.servlet.ModelAndView;

@Controller
public class HelloController {

    @RequestMapping("/hello")
    public ModelAndView hello() {
        ModelAndView mav = new ModelAndView();
        mav.addObject("message", "Form submitted successfully!");
        return mav;
    }
}
